package cn.pzh.cloud.service.imp;

import cn.pzh.cloud.mapper.UserMapper;
import cn.pzh.cloud.pojo.TbUser;
import cn.pzh.cloud.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImp implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public TbUser queryByUserId(Integer userId) {
        return userMapper.selectById(userId);
    }
}
